import { getLine } from '@/api/home.js';
import tabars from '@/components/bottom';

export default (await import('vue')).default.extend({
name: 'issue',
components: {
[tabars.name]: tabars
},
data() {
return {
username: '',
password: '',
vercode: '',
};
},

mounted() {
},
created() {
},
methods: {
onSubmit(values) {
console.log('submit', values);
this.getdl();

},
send() {
let num = 0;
let timer = setTimeout(() => {
num++;
}, 1000);
getLine('/user/sendSms', { mobile: this.username, type: 'register' }).then(res => {
console.log(res);
});
},
getdl() {
let { username, password, vercode } = this;
getLine('/user/reg', { password, username, vercode }).then(res => {
console.log(res);

if (res.code == 0) {
let { token } = res;
localStorage.setItem('dw-token', token);
}
});
},
},
});
